import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import FansRegister from '@/components/register/FansRegister' //会员注册
import FansBind from '@/components/register/FansBind' //会员绑定
import FansBindOld from '@/components/register/FansBindOld' //老会员直接公众号进入绑定
import FansLogin from '@/components/register/FansLogin' //登录
import Agreement from '@/components/Agreement' //注册协议
import NewsList from '@/components/NewsList' //新闻列表
import NewsDetail from '@/components/NewsDetail' //新闻详情

//import FansWallet from '@/components/FansWallet' //钱包
import FansWallet from '@/components/fans/FansWallet' //钱包
import Signed from '@/components/sign/Signed' //签到
import SignRule from '@/components/sign/SignRule' //签到成功
import SignAct from '@/components/sign/SignAct' //签到活动链接

import ScoreList from '@/components/score/ScoreList' // 积分换礼列表
import ScoreDetail from '@/components/score/ScoreDetail' // 积分换礼详情
import ScoreDetail1 from '@/components/score/ScoreDetail1' // 积分大作战
import ScoreDetail2 from '@/components/score/ScoreDetail2' // 积分大作战-结果
import ScoreCreate from '@/components/score/ScoreCreate' // 积分换礼生成
import ScoreCreateJp from '@/components/score/ScoreCreateJp' // 奖品详情

import IntegralDetail from '@/components/fans/IntegralDetail' //积分明细
import VipRights from '@/components/fans/VipRights' //会员权益
import DiscountTicket from '@/components/fans/DiscountTicket' //优惠券
import DiscountTicketJp from '@/components/fans/DiscountTicketJp' //优惠券
import DiscountDetail from '@/components/fans/DiscountDetail' //优惠券详情
import FlowDetail from '@/components/fans/FlowDetail' //积分换流量
import Parking from '@/components/fans/Parking' //我的停车券
import ParkingArticle from '@/components/fans/ParkingArticle' //我的停车券详情
import FlowDetailJp from '@/components/fans/FlowDetailJp' //中奖充流量
import MoreIntegralDetail from '@/components/fans/MoreIntegralDetail' //更多积分详情
import About from '@/components/about/About' //关于乐宾列表
import Aboutlebin from '@/components/about/Aboutlebin' //关于乐宾
import JoinUs from '@/components/about/JoinUs' //加入我们
import JoinUsList from '@/components/about/JoinUsList' //加入我们列表
import JoinUsDetail from '@/components/about/JoinUsDetail' //加入我们详情
import Question from '@/components/about/Question' //有奖问答

import RapTicket from '@/components/rap_faddish/RapTicket' //抢礼抢券
import RapDetail from '@/components/rap_faddish/RapDetail' //抢礼抢券详情
import RapPay from '@/components/rap_faddish/RapPay' //抢礼抢券支付页
import RapRight from '@/components/rap_faddish/RapRight' //抢礼抢券支付成功
import Faddish from '@/components/rap_faddish/Faddish' //每档爆款
import Buy5 from '@/components/rap_faddish/Buy5' //5元抢
import FaddishDetail from '@/components/rap_faddish/FaddishDetail' //每周爆款/抢礼抢券/5元抢详情公用
import FaddishDetail_yl from '@/components/rap_faddish/FaddishDetail_yl' //每周爆款/抢礼抢券/5元抢详情公用
import Dev from '@/components/kaifazhong.vue' // 开发中
import willsave from '@/components/rap_faddish/willDetail' // 预存生息详情页
import Buy0 from '@/components/rap_faddish/Buy0' // 0元抢
import BuyCommon from '@/components/rap_faddish/buyCommon' // 通用

import Game from '@/components/game/game.vue' // 游戏初始页
import gameCreate from '@/components/score/gameCreate' // 去游戏
import SendTalk from '@/components/community/SendTalk' // 发布话题
import ShequnList from '@/components/community/ShequnList' // 乐乐说(社群)
import Comment from '@/components/community/Comment' // 社群详情
import Questionnaire from '@/components/community/Questionnaire' // 问卷调查
import Topic from '@/components/community/Topic' // 问卷调查
import MyList from '@/components/community/MyList' // 我的乐乐说
import BurstingList from '@/components/bursting/BurstingList' // 爆款列表
import BurstingArticle from '@/components/bursting/BurstingArticle' // 爆款详情
import BurstingPay from '@/components/bursting/BurstingPay' // 爆款支付
import RapRightBurs from '@/components/bursting/RapRight' //爆款支付成功
import Error from '@/components/fans/Error' //错误提示页
import Releaseupdate from '@/components/baskphoto/Release_update' //晒照片首页
import BaskPhoto from '@/components/baskphoto/Index' //晒照片首页
import BaskPhotoList from '@/components/baskphoto/List' //晒照片首页
import BaskPhotoArticle from '@/components/baskphoto/Article' //晒照片详情
import BaskPhotoTop from '@/components/baskphoto/Top' //晒照片排行榜
import BaskPhotoExplain from '@/components/baskphoto/Explain' //晒照片活动说明
import BaskPhotoAbout from '@/components/baskphoto/About' //晒照片关注我们
import BaskPhotoRelease from '@/components/baskphoto/Release' //晒照片-发布


import NewsHome from '@/components/NewsHome' // 立即更新首页

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    redirect: {
      name: 'register'
    },
    name: 'HelloWorld',
    component: HelloWorld,
    meta: {
      title: '首页入口'
    }
  },
    {
      path: '/news',
      name: 'news',
      component: NewsList,
      meta: {
        title: '文章'
      }
    },
    {
      path: '/detail/:id',
      name: 'detail',
      component: NewsDetail,
      meta: {
        title: '文章详情'
      }
    },
    {
      path: '/register',
      name: 'register',
      component: FansRegister,
      meta: {
        title: 'FANS®注册'
      }
    },
    {
      path: '/bind/',
      name: 'bind',
      component: FansBind,
      meta: {
        title: '绑定'
      }
    },
    {
      path: '/bindold/',
      name: 'bindold',
      component: FansBindOld,
      meta: {
        title: 'FANS®会员绑定'
      }
    },
    {
      path: '/login',
      name: 'login',
      component: FansLogin,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/agreement',
      name: 'agreement',
      component: Agreement,
      meta: {
        title: '注册协议'
      }
    },
    {
      path: '/wallet',
      name: 'wallet',
      component: FansWallet,
      meta: {
        title: '我的钱包'
      }
    },
    {
      path: '/signed',
      name: 'signed',
      component: Signed,
      meta: {
        title: '签到'
      }
    },
    {
      path: '/signrule',
      name: 'signrule',
      component: SignRule,
      meta: {
        title: '签到成功'
      }
    },
    {
      path: '/signact',
      name: 'signact',
      component: SignAct,
      meta: {
        title: '活动'
      }
    },
    {
      path: '/score',
      name: 'score',
      component: ScoreList,
      meta: {
        title: '积分换礼'
      }
    },
    {
      path: '/scoredetail/:id',
      component: ScoreDetail,
      name: 'scoredetail',
      meta: {
        title: '积分换礼'
      }
    },
    //积分大作战
    {
      path: '/scoredetail1/:id',
      component: ScoreDetail1,
      name: 'scoredetail1',
      meta: {
        title: ''
      }
    },
    //积分大作战
    {
      path: '/scoredetail2/:sjmc/:ddbh/:kjjf/:dhsj',
      component: ScoreDetail2,
      name: 'scoredetail2',
      meta: {
        title: ''
      }
    },
    {
      path: '/scorecreate',
      name: 'scorecreate',
      component: ScoreCreate,
      meta: {
        title: '积分换礼'
      }
    },
    {
      path: '/ScoreCreateJp',
      name: 'ScoreCreateJp',
      component: ScoreCreateJp,
      meta: {
        title: '奖品详细'
      }
    },
    {
      path: '/integralDetail',
      name: 'integralDetail',
      component: IntegralDetail,
      meta: {
        title: "积分明细"
      }
    },
    {
      path: '/vipRights',
      name: 'vipRights',
      component: VipRights,
      meta: {
        title: '会员权益'
      }
    },
    {
      path: '/DiscountTicket',
      name: 'DiscountTicket',
      component: DiscountTicket,
      meta: {
        title: '优惠券'
      }
    }, {
      path: '/DiscountTicketJp',
      name: 'DiscountTicketJp',
      component: DiscountTicketJp,
      meta: {
        title: '我的奖品'
      }
    }, {
      path: '/FlowDetail',
      name: 'FlowDetail',
      component: FlowDetail,
      meta: {
        title: '积分换流量'
      }
    }, {
      path: '/FlowDetailJp',
      name: 'FlowDetailJp',
      component: FlowDetailJp,
      meta: {
        title: '奖品详细'
      }
    }, {
      path: '/Parking',
      name: 'Parking',
      component: Parking,
      meta: {
        title: '我的停车券'
      }
    },
    {
      path: '/ParkingArticle',
      name: 'ParkingArticle',
      component: ParkingArticle,
      meta: {
        title: '我的停车券'
      }
    },
    {
      path: '/DiscountDetail/:id',
      component: DiscountDetail,
      meta: {
        title: '优惠券'
      }
    },
    {
      path: '/moreIntegralDetail',
      name: 'moreIntegralDetail',
      component: MoreIntegralDetail,
      meta: {
        title: "积分明细"
      }
    },
    {
      path: '/about',
      name: 'about',
      component: About,
      meta: {
        title: "关于乐宾"
      }
    },
    {
      path: '/aboutlebin',
      name: 'aboutlebin',
      component: Aboutlebin,
      meta: {
        title: "关于乐宾"
      }
    },
    {
      path: '/joinus',
      name: 'joinus',
      component: JoinUs,
      meta: {
        title: "加入我们"
      }
    },
    {
      path: '/joinuslist',
      name: 'joinuslist',
      component: JoinUsList,
      meta: {
        title: "加入我们"
      }
    },
    {
      path: '/joinusdetail',
      name: 'joinusdetail',
      component: JoinUsDetail,
      meta: {
        title: "加入我们"
      }
    },
    {
      path: '/question',
      name: 'question',
      component: Question,
      meta: {
        title: "有奖问答"
      }
    },
    {
      path: '/rapticket',
      name: 'RapTicket',
      component: RapTicket,
      meta: {
        title: '预存生息'
      }
    },
    {
      path: '/rapdetail/:id',
      name: 'RapDetail',
      component: RapDetail,
      meta: {
        title: '支付'
      }
    },
    {
      path: '/rappay',
      name: 'RapPay',
      component: RapPay,
      meta: {
        title: '支付'
      }
    },
    {
      path: '/rapright/:id',
      name: 'RapRight',
      component: RapRight,
      meta: {
        title: ''
        // title: '火爆限量抢'
      }
    },
    {
      path: '/raprightburs/:id',
      name: 'RapRightBurs',
      component: RapRightBurs,
      meta: {
        title: ''
        // title: '火爆限量抢'
      }
    },
    {
      path: '/faddish',
      name: 'Faddish',
      component: Faddish,
      meta: {
        title: '本月爆款'
      }
    },
    {
      path: '/buy5',
      name: 'buy5',
      component: Buy5,
      meta: {
        title: '狂抢回门礼（每人限购1件）'
      }
    },
    {
      path: '/faddishdetail/:id',
      name: 'FaddishDetail',
      component: FaddishDetail,
      meta: {
        // title: '火爆限量抢'
        title: ''
      }
    },
    {
      path: '/faddishdetail_yl/:id',
      name: 'FaddishDetail_yl',
      component: FaddishDetail_yl,
      meta: {
        // title: '火爆限量抢'
        title: ''
      }
    },
    {
      path: '/Game/:id/:type/:msg',
      name: 'Game',
      component: Game,
      meta: {
        title: '游戏'
      }
    },
    {
      path: '/Dev',
      name: 'Dev',
      component: Dev,
      meta: {
        title: '开发中'
      }
    },
    {
      path: '/gameCreate',
      name: 'gameCreate',
      component: gameCreate,
      meta: {
        title: '去游戏'
      }
    },
    {
      path: '/willsave/:id',
      name: 'willsave',
      component: willsave,
      meta: {
        title: '预存升息'
      }
    },
    {
      path: '/shequnlist',
      name: 'ShequnList',
      component: ShequnList,
      meta: {
        title: '乐乐说'
      }
    },
    {
      path: '/comment',
      name: 'Comment',
      component: Comment,
      meta: {
        title: '乐乐说'
      }
    },
    {
      path: '/buy0',
      name: 'Buy0',
      component: Buy0,
      meta: {
        title: '0元抢购'
      }
    },
    {
      path: '/questionnaire',
      name: 'Questionnaire',
      component: Questionnaire,
      meta: {
        title: '有奖问答'
      }
    },
    {
      path: '/topic/:id',
      name: 'Topic',
      component: Topic,
      meta: {
        title: ''//问卷调查详情
      }
    },
    {
      path: '/sendTalk',
      name: 'SendTalk',
      component: SendTalk,
      meta: {
        title: '发布动态'
      }
    },
    {
      path: '/NewsHome',
      name: 'NewsHome',
      component: NewsHome,
      meta: {
        title: '最新资讯'
      }
    },
    {
      path: '/buycommon/:id',
      name: 'BuyCommon',
      component: BuyCommon,
      meta: {
        title: '抢礼抢券'
      }
    },
    {
      path: '/mylist',
      name: 'MyList',
      component: MyList,
      meta: {
        title: '我的乐乐说'
      }
    },
    {
      path: '/burstinglist',
      name: 'BurstingList',
      component: BurstingList,
      meta: {
        title: '爆款'
      }
    },
    {
      path: '/burstingarticle/:id',
      name: 'BurstingArticle',
      component: BurstingArticle,
      meta: {
        title: '爆款'
      }
    },
    {
      path: '/burstingpay',
      name: 'BurstingPay',
      component: BurstingPay,
      meta: {
        title: '支付'
      }
    },
    {
      path: '/error',
      name: 'Error',
      component: Error,
      meta: {
        title: '提示'
      }
    },
    {
      path: '/baskphoto',
      name: 'BaskPhoto',
      component: BaskPhoto,
      redirect: '/baskphoto/list',
      meta: {
        title: '晒照片'
      },
      children: [
        {
          path: 'list',
          name: 'List',
          component: BaskPhotoList,
          meta: {
            title: '晒照片'
          }
        },
        {
          path: 'article/:id',
          name: 'Article',
          component: BaskPhotoArticle,
          meta: {
            title: '晒照片详情'
          }
        },
        {
          path: 'top',
          name: 'Top',
          component: BaskPhotoTop,
          meta: {
            title: '排行榜'
          }
        },
        {
          path: 'explain',
          name: 'Explain',
          component: BaskPhotoExplain,
          meta: {
            title: '活动说明'
          }
        },
        {
          path: 'about',
          name: 'About',
          component: BaskPhotoAbout,
          meta: {
            title: '关注我们'
          }
        },
        {
          path: 'release',
          name: 'Release',
          component: BaskPhotoRelease,
          meta: {
            title: '发布'
          }
        }, {
          path: 'releaseupdate',
          name: 'releaseupdate',
          component: Releaseupdate,
          meta: {
            title: '修改信息'
          }
        }
      ]
    },
    {
      path: '/svip/:id',
      name: 'svip',
      component: () => import('@/components/superVip/SuperVipIndex.vue'),
      meta: {
        title: '超级会员'
      }
    },{
      path: '/svipParking',
      name: 'SuperVipParking',
      component: () => import('@/components/superVip/SuperVipParking.vue'),
      meta: {
        title: '超级会员停车券'
      }
    },{
      path: '/SuperVipDiscountTicket/:hykid/:yhqtype',
      name: 'SuperVipDiscountTicket',
      component: () => import('@/components/superVip/SuperVipDiscountTicket.vue'),
      meta: {
        title: '超级会员优惠券'
      }
    },{
      path: '/SuperVipScoreCreate/:id',
      name: 'SuperVipScoreCreate',
      component: () => import('@/components/superVip/SuperVipScoreCreate.vue'),
      meta: {
        title: '核销'
      }
    },{
      path: '/SuperVipSm/:id',
      name: 'SuperVipSm',
      component: () => import('@/components/superVip/SuperVipHtml.vue'),
      meta: {
        title: '活动说明'
      }
    }
  ]
})
